package com.moody.hibernate.domain;

/**
 * ReportModelId entity. @author MyEclipse Persistence Tools
 */

public class ReportModelId implements java.io.Serializable {

	// Fields

	private String reportNo;
	private Integer displayNo;

	// Constructors

	/** default constructor */
	public ReportModelId() {
	}

	/** full constructor */
	public ReportModelId(String reportNo, Integer displayNo) {
		this.reportNo = reportNo;
		this.displayNo = displayNo;
	}

	// Property accessors

	public String getReportNo() {
		return this.reportNo;
	}

	public void setReportNo(String reportNo) {
		this.reportNo = reportNo;
	}

	public Integer getDisplayNo() {
		return this.displayNo;
	}

	public void setDisplayNo(Integer displayNo) {
		this.displayNo = displayNo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ReportModelId))
			return false;
		ReportModelId castOther = (ReportModelId) other;

		return ((this.getReportNo() == castOther.getReportNo()) || (this
				.getReportNo() != null
				&& castOther.getReportNo() != null && this.getReportNo()
				.equals(castOther.getReportNo())))
				&& ((this.getDisplayNo() == castOther.getDisplayNo()) || (this
						.getDisplayNo() != null
						&& castOther.getDisplayNo() != null && this
						.getDisplayNo().equals(castOther.getDisplayNo())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getReportNo() == null ? 0 : this.getReportNo().hashCode());
		result = 37 * result
				+ (getDisplayNo() == null ? 0 : this.getDisplayNo().hashCode());
		return result;
	}

}